package com.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.boot.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from tb_user")
    List<User> getAllUsers();
    @Select("select * from tb_user where id = #{id}")
    User getUserById(Integer id);
}
